#include "SignalInput.h"

SignalInput::SignalInput(Device* pDev)
	: _pDevice(pDev)
{

}

int SignalInput::read()
{
	_value = _pDevice->read();
	return _value;
}

int SignalInput::open()
{
	return _pDevice->open();
}

void SignalInput::close()
{
	_pDevice->close();
}

void SignalInput::update()
{
	_value = _pDevice->read();
}

int SignalInput::getValue()
{
	return _value;
}
